"use strict";

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var user = null;
var a = user === null || user === void 0 ? void 0 : user.name;
console.log(a);
var User = /*#__PURE__*/function () {
  function User() {
    _classCallCheck(this, User);
    _defineProperty(this, "_name", "tom");
  }
  _createClass(User, [{
    key: "name",
    get: function get() {
      return this._name;
    },
    set: function set(nv) {
      this._name = nv;
    }
  }]);
  return User;
}();